package cn.jark.example.crm.controller;

import cn.jark.example.crm.entity.AdContract;
import cn.jark.example.crm.entity.FrameworkContract;
import cn.jark.example.crm.service.IAdContractService;
import cn.jark.example.crm.service.IFrameworkContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 雨一直夏灬(须知少年凌云志, 曾许人间第一流)
 * @since 2020-10-30
 */
@RestController
public class Demo1Controller {

    @Autowired
    IFrameworkContractService frameworkContractService;

    @Autowired
    IAdContractService adContractService;

    @GetMapping("/test")
    public FrameworkContract getOne() {
        return frameworkContractService.getById("28");
    }


    @GetMapping("/test2")
    public AdContract getOne2() {
        return adContractService.getById("51");
    }
}
